package com.ddm.entity.webEntity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 市场动态表
 * </p>
 *
 * @author lwj
 * @since 2025-05-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Market对象", description = "市场动态")
@TableName(value = "market", autoResultMap = true)
public class Market implements Serializable {

    private static final long serialVersionUID = 1L;
//动态供求信息发布
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "市场标题")
    private String sdTitle;

    @ApiModelProperty(value = "价格")
    private BigDecimal sdPrice;

    @ApiModelProperty(value = "数量")
    private String sdCount;

    @ApiModelProperty(value = "链接地址")
    private String sdUrl;

    @ApiModelProperty(value = "联系电话")
    private String sdPhone;

    @ApiModelProperty(value = "联系人")
    private String sdMan;

    @ApiModelProperty(value = "图片地址")
    private String sdImg;

    @ApiModelProperty(value = "发布时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime sdPublishDate;
//市场分析
    @ApiModelProperty(value = "文章标题")
    private String aTitle;

    @ApiModelProperty(value = "文章发布时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime aPublishDate;

    @ApiModelProperty(value = "文章发布人")
    @TableField(fill = FieldFill.INSERT)
    private String aPublishMan;

    @ApiModelProperty(value = "文章链接")
    private String aUrl;

    @ApiModelProperty(value = "文章内容")
    private String aContent;

    @ApiModelProperty(value = "文章简介")
    @TableField("abstract")
    private String aAbstract;

    @ApiModelProperty(value = "图片地址")
    private String aImg;

    @ApiModelProperty(value = "文档地址")
    private String aFile;
    @ApiModelProperty(value = "文档类型")//0是普通文档，1是vip文档
    private Integer aType;
    @ApiModelProperty(value = "用户id")//0是普通文档，1是vip文档
    private long userId;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public LocalDateTime getSdPublishDate() {
        return sdPublishDate;
    }

    public void setSdPublishDate(LocalDateTime sdPublishDate) {
        this.sdPublishDate = sdPublishDate;
    }
}